/*
 * NacteniMenuButton.java
 * 
 * Created on 5.12.2007, 19:27:18
 * 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cz.possoft.client.gui.panel.nastavenivrchnipanel.components;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;

import cz.possoft.client.gui.panel.NastaveniSpodniPanel;

/**
 *
 * @author mara
 */
public class NacteniMenuButton extends JButton {

    //private NastaveniSpodniPanel nastaveniSpodniPanel;
    
    public NacteniMenuButton(String text) {
        super(text);        
        initContent();
    }
    
    class NacteniButtonListener implements ActionListener {
        
        public void actionPerformed(ActionEvent ae) {
            NastaveniSpodniPanel.getNastaveniSpodniPanel().nacteniStisknuto();
        }
    }
    
    public void initContent() {
        addActionListener(new NacteniButtonListener());
    }

}
